package com.system.validation;

import com.system.anno.Processing;
import jakarta.validation.ConstraintValidator;
import jakarta.validation.ConstraintValidatorContext;

public class ProcessingVlidation implements ConstraintValidator<Processing,String> {
    @Override
    public boolean isValid(String s, ConstraintValidatorContext constraintValidatorContext) {
        if(s == null){
            return false;
        }
        if(s.equals("未处理") || s.equals("处理中") || s.equals("已完成")){
            return true;
        }
        return false;
    }
}
